home *** CD-ROM | disk | FTP | other *** search
- on CDXSearch
- global CDXSearchBegin, CDXSearchSprite, CDXWhichTypesList, CDXresultlist, CDpageselect, CDrecordsfound, CDXSelected, CDXSub, CDXSomething, CDXWordsearchdata, CDXFirstResSprite, CDXLastResSprite, CDXHelpOnStage, CDXWhichIndex
- if rollOver(CDXSearchSprite) or (CDXSub = 3) then
- if CDXSearchBegin = 0 then
- set the castNum of sprite CDXSearchSprite to the number of member "SearchNowTwo"
- updateStage()
- end if
- repeat while rollOver(CDXSearchSprite) or (CDXSub = 3)
- if (the mouseDown and (CDXSearchBegin = 0)) or (CDXSub = 3) then
- if CDXSearchBegin = 0 then
- set CDXSub to 2
- set the castNum of sprite CDXSearchSprite to the number of member "SearchNowThree"
- set CDXSearchBegin to 1
- updateStage()
- end if
- exit repeat
- end if
- end repeat
- if CDXSearchBegin = 0 then
- set the castNum of sprite CDXSearchSprite to the number of member "SearchNowOne"
- else
- if CDXSearchBegin = 1 then
- repeat with a = 30 to 35
- set the castNum of sprite a to the number of member "CDDot"
- set the locH of sprite a to 2000
- set the locV of sprite a to 2000
- end repeat
- set the castNum of sprite 36 to the number of member "CDDot"
- set the locH of sprite 36 to 2000
- set CDXHelpOnStage to 0
- repeat with a = CDXFirstResSprite to CDXLastResSprite
- set the castNum of sprite a to -1
- set the locH of sprite a to 2000
- set the locV of sprite a to 2000
- end repeat
- updateStage()
- set CDXWordsearchdata to 0
- set CDcountwords to the number of words in field "CDWordSearchField"
- set CDXWordsearchdata to word 1 to CDcountwords of line 1 of field "CDWordSearchField"
- set CDXWhichTypesList to list()
- set CDpageselect to 0
- repeat with d = 1 to count(WhichInxTopMenuList)
- set selectedtext to getAt(getAt(WhichInxTopMenuList, d), 4)
- if getAt(getAt(WhichInxTopMenuList, d), 14) = "MG_RATE" then
- set wordNum to 1
- else
- set wordNum to the number of words in field selectedtext
- end if
- if wordNum > 1 then
- set WhichSel to word 1 of field selectedtext && word 2 of field selectedtext
- else
- set WhichSel to word 1 of field selectedtext
- end if
- if (WhichSel <> EMPTY) and (WhichSel <> "select all") and (WhichSel <> "all") and (WhichSel <> "select") then
- repeat with g = 1 to the number of chars in WhichSel
- put charToNum(char g of WhichSel)
- if (charToNum(char g of WhichSel) > 96) and (charToNum(char g of WhichSel) < 123) then
- set currentasciivalue to charToNum(char g of WhichSel)
- set currentasciivalue to currentasciivalue - 32
- put numToChar(currentasciivalue) into char g of WhichSel
- end if
- end repeat
- add(CDXWhichTypesList, [getAt(getAt(WhichInxTopMenuList, d), 14), WhichSel])
- end if
- end repeat
- if (count(CDXWhichTypesList) > 0) or (CDXWordsearchdata <> EMPTY) then
- set CDXSelected to 1
- set CDXresultlist to list()
- CDXBeginFileFlexSearching()
- else
- set the castNum of sprite 34 to the number of member "CDNothingSel"
- set the boxType of member "CDNothingSel" to #fixed
- set the margin of member "CDNothingSel" to 2
- set the border of member "CDNothingSel" to 1
- if the machineType > 200 then
- set the textFont of member "CDNothingSel" to "arial"
- else
- set the textFont of member "CDNothingSel" to "Geneva"
- end if
- set the textStyle of member "CDNothingSel" to "plain"
- set the textSize of member "CDNothingSel" to 12
- set the loc of sprite 34 to point(30, 134)
- set the castNum of sprite 35 to the number of member "NothingGraphic"
- set the loc of sprite 35 to point(217, 156)
- updateStage()
- set CDXSelected to 0
- end if
- set CDrecordsfound to count(CDXresultlist)
- if CDrecordsfound > 18 then
- set CDpageselect to 1
- end if
- if (CDXSelected = 1) and (CDXSomething = 1) then
- case CDXWhichIndex of
- 1:
- CDXFieldResults()
- CDXdisplay()
- 2:
- PRODFieldResults()
- PRODdisplay()
- end case
- end if
- repeat while the mouseDown
- end repeat
- set the castNum of sprite CDXSearchSprite to the number of member "SearchNowOne"
- set CDXSearchBegin to 0
- end if
- end if
- updateStage()
- end if
- end
-